package com.briup.day13;

public class Teacher {  // 教师类
	
	private int id;			// 属性【工号】
	private String name;		// 属性【姓名】
	private int age;			// 属性【年龄】
	private String gender;	// 属性【性别】
	private double salary;	// 属性【工资】
    
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public double getSalary() {
		return salary;
	}

	public void setSalary(double salary) {
		this.salary = salary;
	}

    public void work() {	// 行为【工作】
        System.out.println("大家好，我是工号为" + id+"的"+name +",性别"+gender+ "，今年" + age + "岁,"+"月薪"+salary+"元。");
    }
    
    public void print() {	// 行为【工作】
        System.out.println(getAge());
        System.out.println(getGender());
		System.out.println(getId());
		System.out.println(getName());
		System.out.println(getSalary());
    }
}